package com.share.example.stock.model.db;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 目标地址: http://quote.eastmoney.com/concept/sh603777.html?from=classic
描述: 东方财富-股票行情-盘前数据
限量: 单次返回指定当前交易日的股票分钟数据, 包含盘前分钟数据
symbol	str	symbol="000001"; 股票代码
start_date	str	start_date="09:00:00"; 时间; 默认返回所有数据
end_date	str	end_date="15:40:00"; 时间; 默认返回所有数据
 * </p>
 *
 * @author author
 * @since 2023-06-17
 */
@Data
@Accessors(chain = true)
@TableName("tas_stock_min_price")
public class StockMinPrice implements Serializable{

    private static final long serialVersionUID=1L;

    /** 主键 */
    @TableId(type = IdType.AUTO)
    private Long id;
    /** 股市编码 */
    private String code;
    /** 日期 */
    private String date;
    /** 时间 */
    private String time;
    /** 开盘 */
    private Double open;
    /** 昨日收盘 */
    private Double yclose;
    /** 最高 */
    private Double high;
    /** 最低 */
    private Double low;
    /** 当日成交量 */
    private Long volume;
    /** 当日成交额 */
    private Double amount;
    /** 收盘价 或者 当日开盘期间价 */
    private Double close;

    @TableField(value = "co_o")
    private Double coO;

    @TableField(value = "hl_o")
    private Double hlO;

    @TableField(value = "hl")
    private Double hl;

    @TableField(value = "co")
    private Double co;

    @TableField(value = "cl_hl")
    private Double clHl;

    @TableField(value = "ol_hl")
    private Double olHl;

    @TableField(value = "hc_hl")
    private Double hcHl;

    @TableField(value = "ho_hl")
    private Double hoHl;

    @TableField(value = "avg_oc")
    private Double avgOc;

    @TableField(value = "avg_hl")
    private Double avgHl;
}
